import { del, get, post, put, toExcel, upload } from "./axios";
export const server = {
  getHomeInfo() {
    return get("/home");
  },
  login(paramObj) {
    //登录
    return post("/account_login", paramObj);
  },
  // 退出登录
  lgOut() {
    return get("/logout");
  },
  getUserInfo() {
    //获取登录用户信息
    return get("/account");
  },
  uploadFile(data, type) {
    //图片上传
    return upload("?folderType=" + type, data);
  },
  findByManageUserIdManageFunction() {
    //菜单
    return get("/backend/function/findByManageUserIdManageFunction");
  },

  getQRCodeImg() {
    //登录页面获取二维码图片
    return get("/qrcode");
  },
  querUserScanCode(paramObj) {
    // 验用户是否扫码登录
    return post("/check_user", paramObj);
  },
  getVerificationCode(paramObj) {
    // 发送验证码
    return post("/send_sms", paramObj);
  },
  bindPhoneNumber(paramObj) {
    // 绑定手机
    return post("/bind_mobile", paramObj);
  },

  getGoodsList(paramObj) {
    return get("/product", paramObj);
  },

  getShareInfo() {
    return get("/share");
  },

  getLevelUser(paramObj) {
    return get("/level_user", paramObj);
  },

  getShareOrder(paramObj) {
    return get("/share_order", paramObj);
  },

  getCommissionOrder(paramObj) {
    return get("/commission_order", paramObj);
  },

  getWithdrawal() {
    return get("/withdrawal");
  },

  withdrawalApply(paramObj) {
    return post("/withdrawal_apply", paramObj);
  },

  withdrawalList(paramObj) {
    return get("/withdrawal_list", paramObj);
  },

  withdrawalAccount(paramObj) {
    return post("/withdrawal_account", paramObj);
  },

  collection(paramObj) {
    return get("/collection", paramObj);
  },

  collectionAdd(paramObj) {
    return post("/collection_add", paramObj);
  },

  collectionSync(paramObj) {
    return post("/collection_sync", paramObj);
  },

  collectionCopy(paramObj) {
    return get("/collection_copy", paramObj);
  },

  collectionDelete(paramObj) {
    return del("/collection_delete", paramObj);
  },

  collectionTop(paramObj) {
    return post("/collection_top", paramObj);
  },

  collectionCate(paramObj) {
    return get("/collection_cate", paramObj);
  },

  collectionCateAdd(paramObj) {
    return post("/collection_cate_add", paramObj);
  },

  collectionCateDelete(paramObj) {
    return del("/collection_cate_delete", paramObj);
  },

  deepLink(paramObj) {
    return post("/deep_link", paramObj);
  },

  userIncome() {
    return get("/user_income");
  },

  getContact() {
    return get("/contact");
  },

  //修改密码
  sysResetPass(paramObj) {
    return post("/edit_password", paramObj);
  },

  //获取订单汇总
  getOrderSummary(paramObj) {
    return get("/order_summary", paramObj);
  },

  //获取大航海列表
  getSeaListFatch(paramObj) {
    return get("/goods_list", paramObj);
  },

  //获取大航海淘口令
  getSeaCodeFatch(paramObj) {
    return post("/dhh_deep_link", paramObj);
  },

  //获取数据看板列表
  getOrderListFatch(paramObj) {
    return get("/dhh_order_summary", paramObj);
  },

  //获取数据看板列表
  getHomePop(paramObj) {
    return get("/pop_up", paramObj);
  },

  //获取余额列表
  getBalanceFacth(paramObj) {
    return get("/balance", paramObj);
  },
};
